/*
 * @Author: fankewen 835656320@qq.com
 * @Date: 2023-12-14 15:15:31
 * @LastEditors: 隔壁小王 18398748175@163.com
 * @LastEditTime: 2024-01-02 14:44:40
 * @FilePath: \symbolimg\demo\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: fankewen 835656320@qq.com
 * @Date: 2023-12-14 15:15:31
 * @LastEditors: fankewen 835656320@qq.com
 * @LastEditTime: 2023-12-21 14:57:12
 * @FilePath: \symbolimg\demo\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEpo
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import { Message } from 'element-ui';
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import './rem'
import { message } from './resetMessage';
import * as echarts from 'echarts'
import * as echartsGL from "echarts-gl"

function px2rem(px) {
  if (/%/ig.test(px)) { // 有百分号%，特殊处理，表述pc是一个有百分号的数，比如：90%
    return px
  } else {
    return (parseFloat(px) / 192) + 'rem'
  }
}
Vue.prototype.$px2rem = px2rem // 放到全局

Vue.prototype.$echarts = echarts // 放到全局
Vue.prototype.$echartsGL = echartsGL;
Vue.config.productionTip = false;
Vue.use(ElementUI);

Vue.use(Viewer)
Vue.prototype.$message = message;
Viewer.setDefaults({
  navbar: false, //底部缩略图toolbar: false, //底部工具栏button: false, //右上角按钮title: false, //当前图片标题movable: true, //是否可以移动zoomable: true, //是否可以缩放transition: false //使用 CSS3 过度
})
// Vue.prototype.message = Message
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
